wayland: don't init if XDG_RUNTIME_DIR missing
authorRyan Lortie <desrt@desrt.ca>
Mon, 20 Oct 2014 21:16:22 +0000 (17:16 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 21 Oct 2014 12:12:12 +0000 (08:12 -0400)
commit6d7f5d443187760798fbb8dc5a50b77ce256c53e
tree44a13256fd8c0b18efe283170b7fafa5e31ab3ce
parent45288ec40c3705df7ef5332af6066c9b4065a025
wayland: don't init if XDG_RUNTIME_DIR missing

wayland doesn't strictly follow the XDG_RUNTIME_DIR spec by falling back
to another directory in case the runtime dir is not properly set.

When this variable is unset, wayland will log an error to us, which we
treat as fatal, aborting the entire program.

Skip ourselves all the trouble and don't try to bring up the wayland
backend when we know it will fail in this way.

https://bugzilla.gnome.org/show_bug.cgi?id=738873
gdk/wayland/gdkdisplay-wayland.c